<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_rent_voucher.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_rent_voucher.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_rent_voucher',
                    name: 'T_rent_voucher',
                    url: "/T_rent_voucher/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_card_face_id":"","c_name2":"","c_order_id":"","c_order_item_id":"","c_over_time":"","c_over_time_charges":"","c_overtime_unit_price":"","c_price":"","c_remain":"","c_remark":"","c_rent_order":"","c_sku_id":"","c_snowseason":"","c_start_time":"","c_status":"","c_stock_code":"","c_stock_id":"","c_times":"","c_name":"","c_type":"","c_item_category_name":"","c_is_refund":"","c_card_id":"","c_continue_time":"","c_create_time":"","c_current_status":"","c_current_stock_code":"","c_current_stock_name":"","c_customer_phone":"","c_damage_reason":"","c_damages":"","c_deposit":"","c_duration":"","c_duration_gift":"","c_end_time":"","c_group_order":"","c_id":"","c_is_damages":"","c_is_over_time":"","c_item_category_id":"","c_version":""},
                editFormOptions: [[{"title":"c_card_face_id","field":"c_card_face_id","type":"text"},
                               {"title":"c_name2","field":"c_name2","type":"text"},
                               {"title":"c_order_id","field":"c_order_id","disabled":true,"type":"text"},
                               {"title":"c_order_item_id","field":"c_order_item_id","disabled":true,"type":"text"}],
                              [{"title":"归还时间","field":"c_over_time","disabled":true,"type":"datetime"},
                               {"title":"超时费用","field":"c_over_time_charges","type":"text"},
                               {"title":"超时金额（每分钟）","field":"c_overtime_unit_price","type":"text"},
                               {"title":"价格","field":"c_price","type":"text"}],
                              [{"title":"剩余次数","field":"c_remain","type":"text"},
                               {"title":"c_remark","field":"c_remark","type":"text"},
                               {"title":"排序","field":"c_rent_order","type":"text"},
                               {"title":"c_sku_id","field":"c_sku_id","type":"text"}],
                              [{"title":"雪季","required":true,"field":"c_snowseason","type":"text"},
                               {"title":"租赁凭据有效起始时间","field":"c_start_time","disabled":true,"type":"text"},
                               {"title":"状态：0未租，1已租，2已归还","field":"c_status","type":"text"},
                               {"title":"c_stock_code","field":"c_stock_code","type":"text"}],
                              [{"title":"c_stock_id","field":"c_stock_id","type":"text"},
                               {"title":"次数","field":"c_times","type":"text"},
                               {"title":"c_name","field":"c_name","type":"text"},
                               {"title":"c_type","field":"c_type","type":"text"}],
                              [{"title":"c_item_category_name","field":"c_item_category_name","type":"text"},
                               {"title":"是否退款","field":"c_is_refund","type":"text"},
                               {"title":"c_card_id","field":"c_card_id","disabled":true,"type":"text"},
                               {"title":"续时（小时）","field":"c_continue_time","type":"text"}],
                              [{"title":"创建时间","field":"c_create_time","type":"text"},
                               {"title":"当前状态","field":"c_current_status","type":"text"},
                               {"title":"c_current_stock_code","field":"c_current_stock_code","type":"text"},
                               {"title":"c_current_stock_name","field":"c_current_stock_name","type":"text"}],
                              [{"title":"c_customer_phone","field":"c_customer_phone","type":"text"},
                               {"title":"c_damage_reason","field":"c_damage_reason","type":"text"},
                               {"title":"赔偿金","field":"c_damages","type":"text"},
                               {"title":"押金","field":"c_deposit","type":"text"}],
                              [{"title":"限时（小时）","field":"c_duration","type":"text"},
                               {"title":"让时（单位：小时）","field":"c_duration_gift","type":"text"},
                               {"title":"租赁凭据有效截止时间","field":"c_end_time","disabled":true,"type":"text"},
                               {"title":"分组排序","field":"c_group_order","type":"text"}],
                              [{"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"是否赔偿","field":"c_is_damages","type":"text"},
                               {"title":"是否超时","field":"c_is_over_time","type":"text"},
                               {"title":"c_id","field":"c_item_category_id","type":"text"}],
                              [{"title":"c_version","field":"c_version","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_card_face_id',title:'c_card_face_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_name2',title:'c_name2',type:'string',width:120,align:'left'},
                       {field:'c_order_id',title:'c_order_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_order_item_id',title:'c_order_item_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_over_time',title:'归还时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_over_time_charges',title:'超时费用',type:'decimal',width:120,align:'left'},
                       {field:'c_overtime_unit_price',title:'超时金额（每分钟）',type:'decimal',width:120,align:'left'},
                       {field:'c_price',title:'价格',type:'decimal',width:120,align:'left'},
                       {field:'c_remain',title:'剩余次数',type:'int',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,align:'left'},
                       {field:'c_rent_order',title:'排序',type:'int',width:120,align:'left'},
                       {field:'c_sku_id',title:'c_sku_id',type:'string',width:120,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_start_time',title:'租赁凭据有效起始时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_status',title:'状态：0未租，1已租，2已归还',type:'int',width:120,align:'left'},
                       {field:'c_stock_code',title:'c_stock_code',type:'string',width:120,align:'left'},
                       {field:'c_stock_id',title:'c_stock_id',type:'string',width:120,align:'left'},
                       {field:'c_times',title:'次数',type:'int',width:120,align:'left'},
                       {field:'c_name',title:'c_name',type:'string',width:120,align:'left'},
                       {field:'c_type',title:'c_type',type:'string',width:120,align:'left'},
                       {field:'c_item_category_name',title:'c_item_category_name',type:'string',width:120,align:'left'},
                       {field:'c_is_refund',title:'是否退款',type:'sbyte',width:120,align:'left'},
                       {field:'c_card_id',title:'c_card_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_continue_time',title:'续时（小时）',type:'decimal',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,align:'left'},
                       {field:'c_current_status',title:'当前状态',type:'int',width:120,align:'left'},
                       {field:'c_current_stock_code',title:'c_current_stock_code',type:'string',width:120,align:'left'},
                       {field:'c_current_stock_name',title:'c_current_stock_name',type:'string',width:120,align:'left'},
                       {field:'c_customer_phone',title:'c_customer_phone',type:'string',width:120,align:'left'},
                       {field:'c_damage_reason',title:'c_damage_reason',type:'string',width:120,align:'left'},
                       {field:'c_damages',title:'赔偿金',type:'decimal',width:120,align:'left'},
                       {field:'c_deposit',title:'押金',type:'decimal',width:120,align:'left'},
                       {field:'c_duration',title:'限时（小时）',type:'decimal',width:120,align:'left'},
                       {field:'c_duration_gift',title:'让时（单位：小时）',type:'decimal',width:120,align:'left'},
                       {field:'c_end_time',title:'租赁凭据有效截止时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_group_order',title:'分组排序',type:'int',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_is_damages',title:'是否赔偿',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_over_time',title:'是否超时',type:'sbyte',width:120,align:'left'},
                       {field:'c_item_category_id',title:'c_id',type:'string',width:120,align:'left'},
                       {field:'c_version',title:'c_version',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
